package main.adapterPattern;

public class TV implements TwoElectricOutlet{
    String name;
    public TV(){
        name="长江电视机";
    }

    public TV(String name){
        this.name=name;
    }

    @Override
    public void connectElectricCurrent() {
        turnOn();
    }

    public void turnOn(){
        System.out.println(name+"开始播放节目：");
    }
}
